<!--[*
// ----------------------------------------------------------------------
// Source file:  $Source: /cvsroot/pn-commerce/pn-commerce/pntemplates/pncommerce_admin_categoryedit.html,v $
//
// Last changes from:  $Author: landseer $
//
// Revision:           $Revision: 1.23 $
//
// Date of revision    $Date: 2005/03/21 16:16:48 $
//
// ----------------------------------------------------------------------
*]-->

<!--[ include file='pncommerce_admin_commonHeader.html' ]-->

<form enctype='multipart/form-data' action='<!--[ pncAdminModURL func=categoryeditresponse ]-->' method='post'>
<!--IMPORTANT!-->
<input type="hidden" name="authid" value="<!--[pnsecgenauthkey module="pncommerce"]-->">

<fieldset>
    <legend>
        <!--[pnml name='_PNC_CATEGORIES' html=1 ]-->&nbsp; <a <!--[pncManualURL Chapter="categories" OpenHelpWindow='1']-->> <!--[pnimg src="doc.gif" border='0' ]--></a>
    </legend>
	
<table border='0' cellpadding='1' width='100%'>
    <tr>
        <td align='right'>
            <b><!--[ pnml name='_PNC_CATNAME' html=1 ]--></b>
        </td>
        <td align='left'>
            <input class='pn-text' type='text' name='Category' size='50' value='<!--[ $Category.Name ]-->'>
			
        </td>
	</tr>
	<tr>
		<td align='right'>
			<b><!--[ pnml name='_PNC_CATNUM' html=1 ]--></b>:
		</td>
		<td>
			&nbsp;<!--[ $Category.ID ]-->
		</td>
    </tr>
	<tr>
		<td align='right'>
			<b><!--[ pnml name='_PNC_CATEGORYSEQUENCE' html=1 ]--></b>:
		</td>
		<td>
            <input type='text' name='CSeq' size='5' value='<!--[ $Category.Sequence ]-->'>
		</td>
    </tr>
    <tr>
        <td align='right'>
            <b><!--[ pnml name='_PNC_CATPARENT' html=1 ]--></b>
        </td>
        <td align='left'>
            <select class='pn-text' name='CPa' size='1'>
            <!--[ $AvailableCategoryTree ]-->
            </select>
        </td>
    </tr>
    <tr>
        <td colspan='2'>
            <hr size='1' width='100%' noshade>
        </td>
    </tr>
    <!-- templates start here -->
    <tr>
        <td colspan='2' align='center'>
            <!--[ pnml name='_PNC_SELECTTEMPLATES' html=1 ]--><br>
        </td>
    </tr>
    <tr>
        <td align='right'>
            <b><!--[ pnml name='_PNC_CATEGORYINTROTEMPLATE' html=1 ]--></b>
        </td>
        <td align='left'>
            <select class='pn-text' name='CatIntroTemplateID'>
            <option value='0'><!--[ pnml name='_PNC_INHERITEDTEMPLATE' html=1 ]--></option>
            <!--[ $CategoryViewTemplateList ]-->
            </select>
        </td>
    </tr>
    <tr>
        <td align='right'>
            <b><!--[ pnml name='_PNC_DEFAULTITEMVIEWTEMPLATE' html=1 ]--></b>
        </td>
        <td align='left'>
            <select class='pn-text' name='ItemViewTemplateID'>
            <option value='0'><!--[ pnml name='_PNC_INHERITEDTEMPLATE' html=1 ]--></option>
            <!--[ $ItemViewTemplateList ]-->
            </select>
        </td>
    </tr>
    <!-- end of template -->
    <tr>
        <td colspan='2'>
            <hr size='1' width='100%' noshade>
        </td>
    </tr>
    <!-- VatID start here -->
    <tr>
        <td align='right'>
            <!--[ pnml name='_PNC_SELECTVATID' html=1 ]-->
        </td>
        <td align='left'>
            <select  class='pn-text' NAME='VatID'>
            <!--[ $VATList ]-->
            </select><br>
        </td>
    </tr>
    <tr>
        <td>&nbsp;
            
        </td>
        <td align='left'>    
            <!--[ pnml name='_PNC_CURRENTVATID' html=1 ]-->: <!--[ $Category.VatID ]--> (<!--[ $Category.Vat ]-->%)
        </td>
    </tr>
    <tr>
        <td colspan='2'>
            <hr size='1' width='100%' noshade>
        </td>
    </tr>
    <!-- end of VatID -->

    <!---------------- category Image Properties----------------->
    <!--[ pncGetConfigThumbnail ]-->
    <!--[ if $ImageDirIsWritable==false ]-->
    <tr>
        <td colspan='2'>
            <table bgcolor='red' cellpadding='7'>
                <tr>
                    <td align='center'>
                        <b><b><!--[ pnml name='_PNC_CHMODWARNINGCAT' html=1 ]--></b></b>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <!--[ /if ]-->
    <tr>
        <td colspan='2' align='center'>
            <b><!--[ pnml name='_PNC_CATEGORYIMAGEPROPERTIES' html=1 ]--></b>
        </td>
    </tr>
    <tr>
        <td align='right' valign="top">
            <!--[ pnml name='_PNC_SENDTHISFILE' html=1 ]-->:
        </td>
        <td align='left'>
            <input class='pn-text' type='file' name='image'><br><br>
        </td>
    </tr>
    <tr>
        <td align='right' valign="top">
            <!--[ pnml name='_PNC_SELECTTNMETHOD' html=1 ]-->:
        </td>
        <td align='left'>
            <table cellspacing='5'>

                <tr>
                    <!--[ if $shopConfigThumbnail.TNIgnoreDisable<>on ]-->
                    <td valign='top'>
                        <input class='pn-text' type='radio' name='tngen' value='ignore' checked='checked'>
                    </td>
                    <td valign="top">
                        <!--[ pnml name='_PNC_IGNORETNIMAGE' html=1 ]-->
                    </td>
                    <!--[ else ]-->
                    <td colspan='2'>
                        <!--[ pnml name='_PNC_THUMBNAILUSAGEDISABLED' html=1 ]-->
                    </td>
                    <!--[ /if ]-->
                </tr>

                <tr>
                    <!--[ if $shopConfigThumbnail.TNUploadDisable<>on ]-->
                    <td valign='top'>
                        <input class='pn-text' type='radio' name='tngen' value='upload'>
                    </td>
                    <td>
                        <!--[ pnml name='_PNC_UPLOADTNIMAGE' html=1 ]--><br>
                        <input class='pn-text' type='file' name='imagetn'>
                    </td>
                    <!--[ else ]-->
                    <td colspan='2'>
                        <!--[ pnml name='_PNC_THUMBNAILUPLOADDISABLED' html=1 ]-->
                    </td>
                    <!--[ /if ]-->
                </tr>

                <tr>
                    <!--[ if $shopConfigThumbnail.TNCreateDisable<>on ]-->
                    <td valign='top'>
                        <input class='pn-text' type='radio' name='tngen' value='create'>
                    </td>
                    <td>
                        <!--[ pnml name='_PNC_CREATETNIMAGE' ]--><br>
                        <!--[ pnml name='_PNC_WIDTH' ]-->:
                        <input class='pn-text' type='text' name='tnwidth' size='3' value='<!--[ $shopConfigThumbnail.TNWidth ]-->'><br>
                        <!--[ pnml name='_PNC_HEIGHT' ]-->:
                        <input class='pn-text' type='text' name='tnheight' size='3' value='<!--[ $shopConfigThumbnail.TNHeight ]-->'>
                    </td>
                    <!--[ else ]-->
                    <td colspan='2'>
                        <!--[ pnml name='_PNC_THUMBNAILCREATIONDISABLED' html=1 ]-->
                    <td>
                    <!--[ /if ]-->
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td colspan='2'>
            <hr size='1' width='100%' noshade>
        </td>
    </tr>
    <tr>
        <td colspan='2' align='center'>
            <!--[ pnml name='_PNC_RECENTIMAGE' html=1 ]-->
        </td>
    </tr>
    <tr>
        <td align='center'>    
            <table>
                <tr>
                    <!--[ if $Category.Image <> false ]-->
                    <td>
                        <!--[ pnml name='_PNC_DELETEIMAGE' html=1 ]-->:
                    </td>
                    <td>
                        <input class='pn-text' type='checkbox' name='delimage' value='true'>
                    </td>
                    <!--[ /if ]-->
                </tr>
                <tr>
                    <!--[ if $Category.ImageTN <> false ]-->
                    <td>
                        <!--[ pnml name='_PNC_DELETEIMAGETN' html=1 ]-->:
                    </td>
                    <td>
                        <input class='pn-text' type='checkbox' name='delimagetn' value='true'>
                    </td>
                    <!--[ /if ]-->
                </tr>
            </table>
        </td>
        <td align='center'>
            <a href="<!--[ $Category.Image ]-->" target='_blank'><img border='0' alt='<!--[ pnml name='_PNC_SHOWIMAGE' html=1 ]-->' src='<!--[ $Category.ImageTN ]-->'></a>
            <br><!--[ pnml name='_PNC_SHOWIMAGE' html=1 ]-->
        </td>
    </tr>

    <tr>
        <td colspan='2'>
            <hr size='1' width='100%' noshade>
        </td>
    </tr>
    <tr>
        <td colspan='2' align='center'>
            <input class='pn-text' type='checkbox' name='CatInvisible' <!--[ $Category.InvisibleHTML ]--> > <b><!--[ pnml name='_PNC_MAKEINVISIBLE' html=1 ]--></b>
        </td>
    </tr>
    <tr>
        <td colspan='2'>
            <hr size='1' width='100%' noshade>
        </td>
    </tr>
    <tr>
        <td colspan='2' align='center'>
            <input type='hidden' name='CID' value='<!--[ $Category.ID ]-->' >
            <input class='pn-button' type='submit' name='Submit' value='<!--[ pnml name='_PNC_SUBMIT' ]-->' >
            &nbsp;+&nbsp;
            <select name='redirect'>
            <option value='backtomain'><!--[ pnml name='_PNC_BACKTOSHOPADMIN' ]--></option>
            <option value='backtocategory'><!--[ pnml name='_PNC_BACKTOTHISCATEGORY' ]--></option>
            <option value='backtotree'><!--[ pnml name='_PNC_BACKTOSTRUCTURETREE' ]--></option>
            </select>    
        </td>
    </tr>

</table>
</form>
<hr size='1' width='100%' noshade>

<form action='<!--[ pncAdminModURL func=categoryrem ]-->' method='post'>
<input type='hidden' name='Mode' value='delete'>
<input type='hidden' name='CategoryID' value=<!--[ $Category.ID ]--> >
<table width='100%'>
    <tr>
        <td width='50%' align='right'>
            <!--[ pnml name='_PNC_REMOVECATEGORY' html=1 ]--><input type='checkbox' name='delete' value='delete'>
        </td>
        <td>
            <input class='pn-button' type='submit' name='Submit' value='<!--[ pnml name='_PNC_CONFIRMDELETE' ]-->' >
        </td>
    </tr>
    <tr>
        <td>&nbsp;
            
        </td>
        <td>
            <!--[ pnml name='_PNC_THISINCLUDES' html=1 ]--> <!--[ $Category.SubCategoryCount ]--> <!--[ pnml name='_PNC_SUBCATEGORIESAND' html=1 ]--> <!--[ $Category.ItemCount ]--> <!--[ pnml name='_PNC_ITEMS' ]-->
        </td>
    </tr>
</table>
</fielset>
</form>


<!--[ include file='pncommerce_admin_commonFooter.html' ]-->